export const bottonTypes = [
    'default',
    'primary',
    'success',
    'warning',
    'info',
    'danger',
    /**
     * @deprecated
     * Text type will be deprecated in the next major version (3.0.0)
     */
    'text',
] as const

//父组件传入的props值
export const buttonProps = {
    text: String,
    type: String,
    size: String,
    plain: Boolean,
    disabled: Boolean,
    loading: Boolean,
    icon: String,
    circle:Boolean,
    dark: Boolean,
    round: Boolean,
    autofocus: Boolean,
    color:String
} as const

//定义了emit的条件限制
export const buttonEmits = {
    click:(evt:MouseEvent)=>evt instanceof MouseEvent
}

export type ButtonEmits = typeof buttonEmits

